package com.thread_pool.annotation.controller;

import com.thread_pool.annotation.service.ThreadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ThreadController {

    @Autowired
    private ThreadService threadService;



    @GetMapping("multi-thread/test")
    public String deduct(){
        threadService.test1();
        return "hello multi—threading";
    }

}
